package com.epfresh.activity;

import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.TextView;

import com.epfresh.R;
import com.epfresh.global.BaseActivity;

public class SelectNameEnsureActivity extends BaseActivity {
	private TextView personTv;
	private TextView companyTv;
	Context mContext;

	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_selectnameensure);
		mContext = this;
		toolbarTitle.setText("实名认证");
		ivBack.setVisibility(View.VISIBLE);
		personTv = (TextView)findViewById(R.id.person);
		companyTv = (TextView)findViewById(R.id.company);
		personTv.setOnClickListener(this);
		companyTv.setOnClickListener(this);

	}

	public void onClick(View view) {
		super.onClick(view);
		switch (view.getId()) {
			case R.id.baseback:
				// 返回上一页
				finish();
				break;
			case R.id.person:
				Intent intent = new Intent(this,
						EnsurePersonActivity.class);
				intent.putExtra("home_tab_index",getIntent().getIntExtra("home_tab_index",0));
				startActivity(intent);
				break;
			case R.id.company:
				Intent company = new Intent(this,
						EnsureCompanyActivity.class);
				company.putExtra("home_tab_index",getIntent().getIntExtra("home_tab_index",0));
				startActivity(company);
				break;
		}
	}

}
